
<script
 src="http://code.jquery.com/jquery-latest.js"></script>
 
 <button id="b">
  提交
 </button>
 
 <script>
$(function(){
    $('#b').click(function(){
         $.ajax({
             type: "post",
             url: "http://www.gg.com/department",
             data: {id:1},
             dataType: "json",
         
         });
    });
});
 </script>